﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EVM.Portal
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected string LoginName
        {
            get
            {
                var alias = Request.LogonUserIdentity.Name;
                if (alias.Contains('\\'))
                    return alias.Split('\\')[1];
                else
                    throw new System.Security.Authentication.AuthenticationException("Only domain users can login this system!");
            }
        }

        protected string Password
        {
            get
            {
                return ConfigurationManager.AppSettings["ARCommonPassword"];
            }
        }
    }
}